package com.vishnu.core.annonymousInnerClassPractice;

public class Test3 {

public static void main(String[] args) {
	
	Thread t=new Thread(){
		public void run(){
			for(int i=0; i<123;i++){
				System.out.println("child thread "+i);
			}
		}
	};
	
	/*here we are creating an anonymous inner class which extends thread class and 
	     in that we are overriding run() method*/
	
	t.start();
	for(int i=0;i<10;i++){
		System.out.println("main thread "+i);
	}
	
	
}
}
